<?php

/**
 * Users presenter.
 */
class UsersPresenter extends BasePresenter
{

	public function renderDefault()
	{
		$users = $this->context->users->getAll();

		$this->template->users = $users;
	}

	/**
	 * Add Form control
	 * @return [type] [description]
	 */
	protected function createComponentAddForm()
	{
		return new Users\UsersForm();
	}
}